package com.meilai.project.controller.web.adMake.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meilai.project.controller.web.adMake.dto.BillAdMakePicsForConfirmDTO;
import com.meilai.project.controller.web.adMake.entity.BillAdMakeSupplierConfirm;
import com.meilai.project.controller.web.adMake.vo.BillAdMakeConfirmWebVO;
import com.meilai.project.controller.web.adMake.vo.BillAdMakeSupplierConfirmVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 制作单-配送 Mapper 接口
 * </p>
 *
 * @author 张驰
 * @since 2022-08-16
 */
@Mapper
public interface BillAdMakeSupplierConfirmMapper extends BaseMapper<BillAdMakeSupplierConfirm> {
    BillAdMakeConfirmWebVO getConfirmVOById(@Param("batchId") String batchId);
    List<BillAdMakeSupplierConfirmVO> confirmVOList(@Param("adMakeId") Long adMakeId);
    List<BillAdMakePicsForConfirmDTO> getConfirmPicList(
            @Param("adMakeId") Long adMakeId,
            @Param("supplierIds") Set<Long> supplierIds
    );

    List<BillAdMakeSupplierConfirmVO> getListBySaleIds(@Param("ids") List<Long> saleIds);
}
